package org.zhao.Share;

import java.util.Arrays;

/**
 * @classname:SharedBikeCompany
 * @description:
 * @author: Mr.Z
 * @date: 2020/11/29 20:40
 * @version: 0.1
 * @since:1.8
 */

public class SharedBikeCompany {
    private Integer bikeCompangId;//公司Id
    private String bikeCompanyName;//0fo 哈罗 摩拜
    private SharedBike[] sharedBikes;//公司持有共享单车
    private Integer sum;//公司单车总量
    private Integer count;//公司单车借出次数
    public SharedBikeCompany() {
    }
    public SharedBikeCompany(Integer bikeCompangId, String bikeCompanyName, SharedBike[] sharedBikes, Integer sum, Integer count) {
        this.bikeCompangId = bikeCompangId;
        this.bikeCompanyName = bikeCompanyName;
        this.sharedBikes = sharedBikes;
        this.sum = sum;
        this.count = count;
    }

    public Integer getBikeCompangId() {
        return bikeCompangId;
    }

    public void setBikeCompangId(Integer bikeCompangId) {
        this.bikeCompangId = bikeCompangId;
    }

    public String getBikeCompanyName() {
        return bikeCompanyName;
    }

    public void setBikeCompanyName(String bikeCompanyName) {
        this.bikeCompanyName = bikeCompanyName;
    }

    public SharedBike[] getSharedBikes() {
        return sharedBikes;
    }

    public void setSharedBikes(SharedBike[] sharedBikes) {
        this.sharedBikes = sharedBikes;
    }

    public Integer getSum() {
        return sum;
    }

    public void setSum(Integer sum) {
        this.sum = sum;
    }

    public Integer getCount() {
        return count;
    }

    public void setCount(Integer count) {
        this.count = count;
    }

    @Override
    public String toString() {
        return "SharedBikeCompany{" +
                "bikeCompangId=" + bikeCompangId +
                ", bikeCompanyName='" + bikeCompanyName + '\'' +
                ", sharedBikes=" + Arrays.toString(sharedBikes) +
                ", sum=" + sum +
                ", count=" + count +
                '}';
    }
}
